Add simple stack to convert to iterative tree traversal