Added constraint for T to IMatrix<T>