fixed bug in ``minpoly_pow``; added ``minpoly_neg``