Damm check digit algorithm