Changed error correction to Berlekamp-Massey to handle errors and erasures.