spiral matrix iterative solution.