public static double getMax(Object[] list) {
		Double max = Double.NEGATIVE_INFINITY;		
		for (int i = 0; i < list.length; ++i)
			if (max.compareTo(((CounterValue)list[i]).value) < 0)
				max = ((CounterValue)list[i]).value;
		return max;
	}