merge polygons