Add code to calc bit parity