implementation of memcpy
implementation of memcpy