Here you can find different algorithms implemented in C++