Adds TreeSet implementation