Implementation of common sorting algorithms in C.