Fix several off-by one errors in analyzeSegment
Fix several off-by one errors in analyzeSegment since the stop trace is inclusive (i.e. a one-trace segment has start=stop).
Fix several off-by one errors in analyzeSegment since the stop trace is inclusive (i.e. a one-trace segment has start=stop).