BMW is teaming up with Chinese internet giant Baidu to start highly automated driving trials in Beijing and Shanghai.