solution to addBinary