add pdiv and pdivMod, and rename prem to pmod