Added a genetic algorithm