added function for crossover of the chromosomes