changed parity calculation from large table to a small function
changed parity calculation to be on-the-fly during tag modulation
changed calls to parity function to use smaller function