k distance neighbors in binary tree