Adding Damm checksum function