finished the binary tree functions at this time, will add new
functions to it if needed.