qsort, heapsort, mergesort

using stdlib and bsd/stdlib, with some unit testing