refactor print matrix spiral