started implementing Canadian Traveler Problem