Fix wost-case of quick sort
Added unittest for issue 7767
Replaced assignments with swaps; Fixed compilation error; misc.
(3.0/2.0) should have been (2.0/3.0)
One more swap, replace with swapAt
Fix shadow declaration in unittest and illegal implicit casts
Fix another break
Add specialized version of optimisticInsertionSort to use swaps, for ranges which don't support assignable elements.
Convert tabs to spaces
Merge optimisticInsertionSort into a single function; Revise documentation for sort.
Minor refactor
Merge pull request #1735 from Xinok/master

Fix issue 7767 - worst case of quick sort