Redesigned GeneticAlgorithm's generics