added c-string reverse algorithm and changed the layout of algo.hpp