added cofactor, inverse, deter