QuickSort First-Last-Middle element Pivot:

Tim Roughgarden solution for No. of comparisons in Quicksort of each
type pivot