Update Memory.cpp