optimization of cv::minMaxLoc - used min/max