Extend Scala's SortedSet trait. First implementation of iterator.
Reduced duplication in insertion code.