TreeSet methods analyzed.