made some of the functions for the bianary tree public