shorten memmove and memcpy functions