Fix GextNextPrime
Fix expanded eucurid GCD.
fix search routine for arctan