Various sorting algorithms.