BinaryTree non-recursive traversal