A custom memory allocation system using C