binary tree travel unrecursively