BinTreeTraverse Generalized