Splitted Genetic.scala into smaller units.