Related PR : #5691
The result of `TopKSelector` may be wrong when `trim()` is invoked and quiksort fallback to `Arrasys.sort()`. Because `Arrasys.sort()` is been used by mistake there.
Following test case can trigger this bug.
```
{
    int n = 10000;
    int k = 10000;
    int testIteration = 10;
    Random random = new Random(System.currentTimeMillis());
    for (int iter = 0; iter < testIteration; iter ++) {
      // target array to be sorted using TopKSelector
      List<Integer> target = new ArrayList<>();
      for (int i = 0; i < 9; i++) {
        List<Integer> sortedArray = new ArrayList();
        for (int j = 0; j < n; j++) {
          sortedArray.add(random.nextInt());
        }
        sortedArray.sort(Integer::compareTo);
        target.addAll(sortedArray);
      }

      TopKSelector<Integer> top = TopKSelector.least(k, Integer::compareTo);
      for (int value : target) {
        top.offer(value);
      }

      target.sort(Integer::compareTo);
      assertEquals(top.topK(), target.subList(0, k));
    }
  }
```
buffer[bufferSize++] = elem;
      if (bufferSize == 2 * k) {
        trim();
      }
    }
  }
  /**
   * Quickselects the top k elements from the 2k elements in the buffer. O(k) expected time, O(k log
   * k) worst case.
   */
  private void trim() {
    int left = 0;
    int right = 2 * k - 1;
    int minThresholdPosition = 0;
    // 
    // 
    int iterations = 0;
    int maxIterations = IntMath.log2(right - left, RoundingMode.CEILING) * 3;
    while (left < right) {
      int pivotIndex = (left + right + 1) >>> 1;
      int pivotNewIndex = partition(left, right, pivotIndex);
      if (pivotNewIndex > k) {
        right = pivotNewIndex - 1;
      } else if (pivotNewIndex < k) {
        left = Math.max(pivotNewIndex, left + 1);
        minThresholdPosition = pivotNewIndex;
      } else {
        break;
      }
      iterations++;