Remove unnecessary binds
Fix typo
Change parity bit to the beginning of binary number

* give better function names
* use sum to compute the parity bit