public static void countSort (int[] array, int k) {
		int[] count = new int[k];
		int size = array.length;
		
		for (int i = 0; i < size; i++) {
			count[array[i]]++;
		}
		
		for (int i = k - 1; i >= 0; i--) {
			while (count[i]-- > 0) {
				array[--size] = i;
			}
		}
	}