private static void getNewData(int j) { //Put a new random order into the data array
		if (ordered) {
			permutations = (SortingAlgorithms.getArrayOfIntegers(j));
			int k = 0;
			for (int value : permutations) {
			    data[k++] = Integer.valueOf(value);
			}
		}else {
			permutations = (SortingAlgorithms.getRandomPermutationOfIntegers(j));
			int k = 0;
			for (int value : permutations) {
			    data[k++] = Integer.valueOf(value);
			}
		}
	
	}