Recursive and Iterative method of travelsals