tree preorder and postorder go through