added matrix tiling support