Some Algorithms in C++ that I implemented