Added QuickSort function