Working genetic algorithm, 5 parameters