QuickSort's Partition function analysis