Add a function which can compute power.