Kth smallest number in binary search tree