Add mod-expt method with varying orders of growth