Add implementation of entropy-optimal quicksort in JavaScript