dynamic allocator library which replaces malloc, calloc, free and realloc