merge adjacent polygons