Adding memcopy function.