A distance between populations for n-points crossover in genetic algorithms