Implementation of the Luhn Checksum Algorithm