Calculates the cofactor matrix of a matrix at a row and column.