Initialize parity bit.
Free entire array in test calculate j.