QuickSort.js median3() uses passed-in compare function
Provide entropy-optimal JS quicksort given many duplicates or not