added optimize/2 which evaluates all the minimized graphs and selects
the best one