power function fixed

mathematical error:
x^0 != x
correct:
x^0 = 1