add solution for SpiralMatrix