Implemented print, search, and add for the tree class.