init
Merge https://github.com/MujingWang/mem_alloc