started to implement an xor algorithm for subtraction