Develop a class CellMatrix.