A compilation of sorting algorithms in JavaScript