learning_gem5: Adds the simple MemObject code