n-bit ripple-carry adder implemented