docs: public static void quickSort(double[] array, int[] idx, int from, int to) {
  		if (from < to) {
  			double temp = array[to];
  			int tempIdx = idx[to];
  			int i = from - 1;
  			for (int j = from; j < to; j++) {
  				if (array[j] <= temp) {
  					i++;
  					double tempValue = array[j];
  					array[j] = array[i];
  					array[i] = tempValue;
  					int tempIndex = idx[j];
  					idx[j] = idx[i];
  					idx[i] = tempIndex;
  				}
  			}
  			array[to] = array[i + 1];
  			array[i + 1] = temp;
  			idx[to] = idx[i + 1];
  			idx[i + 1] = tempIdx;
  			quickSort(array, idx, from, i);
  			quickSort(array, idx, i + 1, to);
  		}
  	}