MAINT: replace bytewise copy with memcpy

memcpy takes care of unaligned memory and is inlined by the compiler,
there is no need for own code.