Finished optimized MatrixRegionSum using Summed Area Table