add a simple memory allocation algorithm in simpleMem.h