add memcpy implemented by C