Fix crossover and distance calculation for unknown number of Genomes