Solves the traveling salesman problem using 3-opt.