par_merge_grid function

Merge adjacent grid polygons with given rules