CrossRateFactory function

Configure the crossover function of a genetic algorithm.