TSP Solver and Generator