added matrix class. Multidimensional arrays