added sideSquareCenters, and triangles3 function. redefined outerEquilateralTriangles in terms of triangles3