fixed Polygon ComputePerimeter