Implementation of algorithms in C.