tsp dynamic solution - beginning