add solution for spiral matrix