As an exercice for the algorithm test of next monday i implemented some algorithms in C. There are:
The source code is available under the BSD License: