Messy Medians TreeSet