Adding non-recursive version of binary tree preorder traversal.