Add New Algorithm Support for general Polygons