much shorter algorithm.hh

Removed all the template<typename...> class Cont, typename... ContArgs
in favour of typename Cont. Doing this also killed the need for array
overloads, so the file is half as long.