Degeneracy, bow ties and the complexity of the immune system