Added the genetic algorithm