Update memory.h

doubly linked