some optimizaions of cv::pow