Find the inorder successor of an element in BST

O(log N), height of the tree [without using parent pointer]