Added insert operation for spsegment.