Implements and16, or, xor gates