Cramer's rule and the inverse of a matrix