Finding the inorder successor in a BST