implemented updateInferenceState()
implemented adaptSegments function
implemented removeSegmentUpdate
implemented cleanUpdatesList()
implemented trimSegmentsInCell()
implemented processSegmentUpdates()