checked genetic algorithm