Xor Vectorized with sigmoid function