working on TSP DP implementation