China regulates algorithms by law