inverse of a matrix cached