A simple class for storing 2D arrays as 1D arrays.