With generic SortedMap instead of specific TreeMap