Delegate copyMemory to Unsafe

Replace hand-rolled memory copy with unsafe.copyMemory