First implementation of the Luhn algorithm
First round of optimization for the luhn algorithm