public static void boundsAssert(int index, int min, int max) {
		if (index > max) {
			throw new IndexOutOfBoundsException(index + " is more than " + max);
		}
		if (index < min) {
			throw new IndexOutOfBoundsException(index + " is less than " + min);
		}
	}