public static <A extends Comparable<A>> A max(Collection<A> col) {
		A max = null;
		for (A a : col) {
			if (max == null) {
				max = a;
			} else if (a.compareTo(max) > 0) {
				max = a;
			}
		}
		return max;
	}