Added optimized way to calculate Luhn algorithm
Added test class for Luhn algorithm