Create pow2.cpp

custom power function