add basic parity of a bit sequence