Update tsp.cpp

added check to NaN values in adjacency matrix
Merge pull request #1 from lisariccardi/patch-1

Update tsp.cpp