Creates an object to enable matrix inverse caching, creates a function to retrieve cached matrix inverses