implemented power() function and tests.
include power for exponent==0
formatting code