Added Lenstra's divisor in residue class algorithm.
Fixed bugs in Lenstra residue class divisor code and changed name of function.