Create powerfunction

Explicit power function in cpp.
power(num,pow)