Co-factor and Adjoint of a matrix