Added base/memory.h and base/memory.c