Verifying if the polygon is simple