sum: BSD checksum algorithm written, but giving wrong checksums.