collection of algorithms in C