Made a start with the genetic algorithm