Fast summarizing algorithm for polygonal statistics over a regular grid. (September 2020)