Adding fix to QuickSort class to function.