developing NVM based memory allocation library