the memory pool with c