Addition function improvement:

A specific branch has been added for binary addition.