Cascading parity-check error-correcting codes