add mfree.c test.c makefile