BST code to find successor