Added memory model implementation of memcpy.