Added the tree traversal function with inorder traversal. Made all the member variables private and wrote the traversal function to be in sync with this design