use iterator to preOrder and postOrder traversse