A parallel pattern for iterative stencil + reduce