docs: protected void ensureCapacity(int minNbRuns) {
      final int minCapacity = 2 * minNbRuns;
      if (valueslength.length < minCapacity) {
        int newCapacity = valueslength.length;
        while (newCapacity < minCapacity) {
          newCapacity = (newCapacity == 0) ? DEFAULT_INIT_SIZE
              : newCapacity < 64 ? newCapacity * 2
                  : newCapacity < 1024 ? newCapacity * 3 / 2 : newCapacity * 5 / 4;
        }
        short[] nv = new short[newCapacity];
        copyValuesLength(valueslength, 0, nv, 0, nbrruns);
        valueslength = nv;
      }
    }