Using XOR and AND to carry out Binary Addition in C++