implement more functions for binary (search) tree.