The role for which a dog was bred—say retrieving birds—is reflected in their brain structure, according to a study of 33 breeds.