Substituted dynamic memory allocation provided by std libs with personalized ones defined in memory.h