This class makes very memory inefficient multidimensional arrays into a singular array.