postorder and preorder traversal iterate way