Implementation of a mmap() softheap in C