kth Smallest element in the tree