Binary search tree walk with indicator, non-recursive