I have two nxm matrices in binary, call them A and B. For every element in B, I want to find the corresponding element in A and, if this element in B is 1, flip the element