Update mem0.c
Update mem1.c
Update mem1.c
Update mem2.c
Merge pull request #44 from maoxinyue/master

Update mem1.c