multiplicative inverse of a matrix