Refactor 'pow(double x, int n)' once more.