Nth smallest element in a Binary Tree