Fixing power function

Anything to the 0 power should return 1.