added post-tree and pre-tree traversals