implemented algorithm evolution for function max