Implementation of TreeMap.