mod2 matrix multiplication