docs: private int[] nArgMin(int n, double[] values, int startIdx, int endIdx){
  		int indices[] = new int[n];
  		for (int i=0; i<n; i++){
  			double minValue = Double.MAX_VALUE;
  			for (int j=startIdx; j<endIdx+1; j++){
  				if (values[j] < minValue){
  					boolean alreadyUsed = false;
  					for (int k=0; k<i; k++){
  						if (indices[k]==j){
  							alreadyUsed = true;
  						}
  					}
  					if (!alreadyUsed){
  						indices[i] = j;
  						minValue = values[j];
  					}
  				}
  			}
  		}
  		return indices;
  	}