Created the cached matrix inverse functions