Finding the closest desination point from the origin