A method for correcting an error in a first block including detecting an
error in the first block, generating a first permutation of the first
block, calculating a first permutation checksum for the first permutation
of the first block, and replacing the first block with the first
permutation of the first block, if a first block checksum matches the
first permutation checksum.