Update memorystorage.cc