iterative in-order