Added function to do post-order traversal of the tree