Added cofactorMatrix, cofactor, inverse and changed determinant