The header algorithms.hpp
contains the description for some standard algorithms.
Your task is to implement these algorithms according to the requirements given in
the comments.
If you need help, a sample implemention for each algorithm is given on cppreference.com.
But try not to cheat!