Implement a power function to raise a double to an int power.