Clean up C++ code
Add a Go implementation

Compute perimeters for circles, rectangles & squares.
Also compute diagonals for any convex polygon.