docs: @SuppressWarnings("SameParameterValue")
      private static void insertionSort(int[] order, double[] values, int start, int n, int limit) {
          for (int i = start + 1; i < n; i++) {
              int t = order[i];
              double v = values[order[i]];
              int m = Math.max(i - limit, start);
              for (int j = i; j >= m; j--) {
                  if (j == 0 || values[order[j - 1]] <= v) {
                      if (j < i) {
                          System.arraycopy(order, j, order, j + 1, i - j);
                          order[j] = t;
                      }
                      break;
                  }
              }
          }
      }