add nthRoot function for algebraic reals