add pre-order and post-order traversals