added mem.h and mem.c implememting memset() and memcpy()