all the sorting algorithms! except in-place pivot sort, ewwww.