code: private static int linearSearch(int[] histogramLevels, int value) {
  		for (int i = 0; i < histogramLevels.length; i++) {
  			if (value < histogramLevels[i]) {
  				return i;
  			}
  		}
  		return histogramLevels.length; //
  	}
docs: return index of smallest element that is greater than "value"