memory V2 - latest changes

fixed using google’s library
should now also pass tests