Add class Trial for PrimalityTest