completed tsp in c