Made SpiralMatrix more compact.