Tech giants like Google, Baidu and Facebook are luring away top researchers for computer science at universities to work for them.