function multiMatchAwareInterval(k, delta, i, s, pi, li) {
  var start1 = pi - i,
      end1 = pi + i;

  var o = k - i;

  var start2 = pi + delta - o,
      end2 = pi + delta + o;

  var end3 = s - li;

  return [Math.max(0, start1, start2), Math.min(end1, end2, end3)];
}
Function returning the interval of relevant substrings to lookup using the
multi-match-aware substring selection scheme described in the paper.

@param   {number} k      - Levenshtein distance threshold.
@param   {number} delta  - Signed length difference between both considered strings.
@param   {number} i      - k + 1 segment index.
@param   {number} s      - String's length.
@param   {number} pi     - k + 1 segment position in target string.
@param   {number} li     - k + 1 segment length.
@returns {Array}         - The interval (start, stop).