resolving Travel Salesman Problem