Code economization in tiling algorithm