2 opt algorithm for travelling salesman problem