finish tsp and ex-1.c for it, valgrind success