memcpy64 refactored