Given a key in a binary tree, find the nearest leaf to the key.