Partially implemented the SortedSet class