add power function

Thanks for the library. I needed to use the power function, so I add one in. 

Cheers, Gary