memchunk.c finalized