implementing BTreeMap.EntrySet.iterator. Have to modify compare function