SPSegment::insert nearly complete