cache the matrix inverse once it has been calculated.