The Loop-of-Stencil-Reduce paradigm