Basic implementation for malloc/calloc/mmap