power.cc adding case for n < 0