Multidimensional array class