Added a simple for_each_chunk function

This is just to make looping through all the available chunks easier.

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>