Adds implementation of several methods of TreeMap