Cofactor Matrix Added

I will make an issue for it, discussion can continue there