added post and pre-order traversal.