Memory allocator in C (similar in function to malloc).