simple checksum implementations