update traveling salesman algorithm