solution for tsp