Arrays.sort(origHistogram); Arrays.sort(histogram);
Arrays.sort(queryHistogram); Arrays.sort(targetHistogram);
	public double combine() {		Arrays.sort(origHistogram);		Arrays.sort(histogram);		double sum1 = 0.0, sum2 = 0.0;		for (int i = 0; i < histogram.length; i++) {			double v1 = origHistogram[i] * 1.0 / 255;			double v2 = histogram[i] * 1.0 / 255;			sum1 += Math.abs(v1 - v2);			sum2 += v1 + v2;		}		return 1 - (sum1 / sum2);	}