spiral matrix working. pending diagonal extraction