Here are codes of standard algorithms implemented in C/C++