Detect parity error in rows and columns (any length)