tree in c++ nary_tree: implements generic n-ary tree with c++ template. it provides an iterative way to traverse the tree.