add tree preorder and postorder traversal