Tiling optimizations for stencil computations