162163164165166167168169170
private void swap(int i, int j) { double cache = fitness[i]; fitness[i] = fitness[j]; fitness[j] = cache; CrossoverEvolvable gcache = population[i]; population[i] = population[j]; population[j] = gcache; }