A multidimensional array class