A simple Luhn algorithm implementation