A Method for Solving Traveling-Salesman Problems