Added matrix inverse cacheing functions