private static int findMostNeg(int[] a){
		int min = 0;
		int minIndex = -1;
		for(int i=l;i<=r;i++){
			if(a[i]<min && used[i]==false){
				min = a[i];
				minIndex = i;
			}
		}
		if(minIndex > 0) used[minIndex]=true;
		return min;
	}