Changed error correction to use Berlekamp-Massey.

These are the changes for the error detection for pdf417. There is also a change on the scanning decoder to help with one pixel errors.