Added function prototypes in memory.h