logic gates for an 8 bit adder in ruby