implement memmove()