Added class Matrix