Added inOrder, preOrder, and postOrder functionality