Day 27: Spiral matrix
Spiral matrix is an old toy algorithm. A funny way to implement the spiral would be to fill the top row in and rotate the matrix to unfold the sequence.
Fortunately, rotations and symmetries are in close relationship and any rotation can be expressed using point…