Added shape recognition module PolygonShapeRec.