TSP genetic algorithm in Scala