public static <T extends Comparable<? super T>> T min(T[] a) {
		
		if (a.length == 0)
			return null;
		
		T min = a[0];
		
		for (int i = 1; i < a.length; i ++) {
			if (min.compareTo(a[i]) < 0) {
				min = a[i];
			}
		}
		
		return min;
	}