The binary logic of antigen processing and presentation to T cells