private static double brayCurtisDistance(double[] d1, double[] d2)
	{
		double n = 0;
		double d = 0;
				
		for (int i=0; i<d1.length; i++)
		{
			n += Math.abs(d1[i]-d2[i]);
			d += Math.abs(d1[i]+d2[i]);
		}
		return n/d;
	}