A star algorithm to solve TSP