Added basic C++ algorithms