spiral matrix - solution