The genetic algorithm is now a function.