SpiralMatrix

Solved, after a bit of pain.