Harvard University counts two of the most successful computer programmers in the world — William H. Gates, the Microsoft co-founder, and Mark Zuckerberg, the Facebook chief executive — as former students. But the university, one of the most respected overall in the world, has never quite made its way into the elite tier of computer science programs.