optimized cv::pow for integer power