implement maximize(boolean _maximize) method for Evolutionary Computing: assignment 5