Evolution by gene duplication in the major histocompatibility complex