Prepare QuickSort Function