Remove trailing newline, AGAIN.  THINGS WORK NOW
Cleanup prob 2 solution
Create getPivot() and swap() functions for problem 3, complete it by selecting the pivot based on the median of the first, middle and last elements of the subarray