quicksort now keeps elements equal to the pivot together, had n^2 behaviour when all elements were equal
Merge branch 'bayes'