Fixed InPlaceQuicksort bug by setting the pivot to the first member of the group being sorted, rather than the first member of the entire array.