Create tsp.c

functions about the data of tsp problem