implementation of cached matrix inverse