Must write qsort, heapsort, and mergesort. Crap.