Add expt(double,int) to SampleMethods.