find K value node pairs for given Binary Search Tree in O(N)