libslc: Implement memcpy