BinaryTree: created a general traversal function. Added pre and post along with existing inorder traversal