C implementation of malloc.