Added mem.h file
created mem.c file
created methods for mem.c file
worked on my  methods for mem.c file
updated file
Updating Files