A dictionary like java TreeMap class