fix scaling in algorithms.tsp