commit spiral matrix