C/C++ implementations of commonly used algorithms