realize nonRecursive traverse BinTree in c++