cache inverse of a matrix