function _filterBetween(values, min, max) {
    let start = 0;
    let end = values.length;
    while(start < end && values[start] < min){
        start++;
    }
    while(end > start && values[end - 1] > max){
        end--;
    }
    return start > 0 || end < values.length ? values.slice(start, end) : values;
}
Return subset of `values` between `min` and `max` inclusive.
Values are assumed to be in sorted order.
@param values - sorted array of values
@param min - min value
@param max - max value