Implement pattern tiling