added comments to MemoryAllocator