TSP.h: Implemented distance calculation functions.