Lucas Test

Implemented the Lucas primality test.