an exploration of sorting algorithms in javascript