*/
	private static <T extends Comparable<T>> void sortMain(String sortsToRun, ArrayList<T> lst){
        long startTime, endTime;
		double execTime;
		
		// Create a copy of 'lst'
		ArrayList<T> lstCopy = new ArrayList<T>(lst);
		
		// Sort the list using Java's sorting implementation
		startTime = System.nanoTime();
		Collections.sort(lstCopy);
		endTime = System.nanoTime();
		execTime = (endTime - startTime) / (10e9);
		
		System.out.println("Java Sort execution time: "+ execTime + " secs");
			
		// Create separate threads for each sort
		Thread threadI = null, threadS = null, threadM = null, threadQ = null;
		if (sortsToRun.contains("I")){
			SortingClient<T> insertionSortObj = new SortingClient<T>();
			insertionSortObj.lst = new ArrayList<T>(lst);
			insertionSortObj.sortedList = new ArrayList<T>(lstCopy);
			insertionSortObj.sortToRun = 'I';
			threadI = new Thread(insertionSortObj);
			threadI.start();
		}
		
		if (sortsToRun.contains("S")){
			SortingClient<T> selectionSortObj = new SortingClient<T>();
			selectionSortObj.lst = new ArrayList<T>(lst);
			selectionSortObj.sortedList = new ArrayList<T>(lstCopy);
			selectionSortObj.sortToRun = 'S';
			threadS = new Thread(selectionSortObj);
			threadS.start();
		}

		if (sortsToRun.contains("M")){
			SortingClient<T> mergeSortObj = new SortingClient<T>();
			mergeSortObj.lst = new ArrayList<T>(lst);
			mergeSortObj.sortedList = new ArrayList<T>(lstCopy);
			mergeSortObj.sortToRun = 'M';
			threadM = new Thread(mergeSortObj);
			threadM.start();
		}

		if (sortsToRun.contains("Q")){
			SortingClient<T> quickSortObj = new SortingClient<T>();
			quickSortObj.lst = new ArrayList<T>(lst);
			quickSortObj.sortedList = new ArrayList<T>(lstCopy);
			quickSortObj.sortToRun = 'Q';
			threadQ = new Thread(quickSortObj);
			threadQ.start();
		}
		try {
			if (threadI != null)
				threadI.join();
			if (threadS != null)
				threadS.join();
			if (threadM != null)
				threadM.join();
			if (threadQ != null)
				threadQ.join();
		}catch (InterruptedException e){
			return;
		}
	}