added ``is_nthpow_residue``, ``nthroot_mod``
fixed performance bug in ``n_order``
added cases to ``primitive_root``