c++ iterator for binarytree