Text this: Using artificial intelligence methods for the optimal synthesis of reversible networks