Betterized the crossover algorithm.