public static int arrayMinIndex(float[] array, int startInd, int endInd){
		if(array == null || array.length == 0)
			return 0;
		float min = array[startInd];
		int minInd = startInd;
		for(int i=startInd; i<endInd;i++){
			if(array[i] < min){
				min = array[i];
				minInd = i;
			}
		}
		return minInd;
	}