Traveling Salesman Problem C++ Implementation