Polygon cutting algorithm done.
merging