Traversal without recursion