From Indirect Object Identification to Syllogisms: Exploring Binary Mechanisms in Transformer Circuits