implement BaseIter for TreeMap (does not compile)