Refactors inheritance tree to include new abstract class MultipleConnectorsGate, which separates a not gate from and, or and xor.