First commit of cached matrix inverse implementation