Traversal without recurssion