Analysis of various approaches to blocking and composition for stencil-type computations