Partial solution for Problem028 -- generates the spiral grid.