Neatened GeneticAlgorithm implementation.