According to a new study of unique last names, moving in or out of the upper class doesn't take just a few generations — it takes centuries.