public static <T> boolean swapArray(T[] array, int i, int j) {
		int size = array.length;
		if (size < 2 || i == j || i < 0 || i >= size || j < 0 || j >= size) {
			return false;
		}
		T temp = array[i];
		array[i] = array[j];
		array[j] = temp;
		return true;
	}