Update memory.h

print function