The evolution of the major histocompatibility complex