taxicab problem