cache inverse of matrix