tree/find_closest_element: find closest element in BST