fixed import statements in factor_ and test_ntheory