added cofactor and determinate. Something still not working,