Create MatrixFactory with invertible check