Parity checking library for C++