Binary tree non-recursive traversal