public Object run() {

		int[] table = new int[size];

		if (option == UNSORTED)
			table = Random.randArrayInt(size, 0, 100);
		if (option == SORTED)
			Arrays.fill(table, 1);

		if (printResult)
			System.out.println("Table before sort \n" + Arrays.toString(table));

		// the main algorithm
		sw.start();
		QuickSort.sort(table);
		sw.stop();
		
		if (printResult)
			System.out.println("Table after sort \n" + Arrays.toString(table));

		return table;
	}