adding functions to verify path and tsp-backtracking