None Rectangular grids

Fixed addressing code, grid is stored one dimensionally to save on
memory, addressing code incorrectly returned values from this array when
grid wasn't square.