getting iterative preorder traversal working