logic gates and, or and xor now take an arbitrary amount of inputs.