added nthRoot operation