Convert recursion to iteration.