add minLength option to getMappedSegments