fixed bug in ``quadratic_residues``; small change in ``_sqrt_mod_prime_power``;
added comments and a test.