hand-coded 4-bit ripple adder