Final Version of TSP Solver