Here you can find basic algorithms implemented in C++