Work on a genetic algorithm