Spiral matrix, running but high mem cost