Little bit prettier implementation of Tree#preorder_iterative.