Add stack of nodes to peform preorder traverse without recursion