mempool: add function to iterate the memory chunks