genetic algorithm for one max problem