optimization of cv::minMaxLoc - used min/max
Merge pull request #2936 from ilya-lavrenov:tapi_minmaxloc_opt