Find kth smallest element in inorder traversal