spiral matrix sol2 better solution: