update Spiral Matrix