A simple header only template function to iterate over a container in chunks of size n and call a functor with the iterators corresponding to the chunk