Cofactor Matrix Added

Whats the logic in returning a zero matrix on failure, how does this tell the user that the cofactor cannot be calculated? It may point to the larger issue of making a general case way of telling the user something can't be computed, as that can happen quite a lot for matrices.