Fixed MATLAB bridge

MATLAB bridge.hpp was missing definition for Ptr<DenseOpticalFlow>
Merge branch 'master' of https://github.com/Itseez/opencv
DownhillSolverImpl::innerDownhillSimplex something looks broken here:
Mat_<double> coord_sum(1,ndim,0.0),buf(1,ndim,0.0),y(1,ndim,0.0);
nfunk = 0;
for(i=0;i<ndim+1;++i)
{
y(i) = f->calc(p[i]);
}
y has only ndim elements, while the loop goes over ndim+1
Updating missed defines in documentation

Updating missed defines in documentation. The new defines (in imgproc.hpp) state they have a prefix of COLOR instead of CV.
optimized cv::warpAffine
Updated and added haarcascade_mcs*.xml files
minmaxloc
optimized cv::norm with NORM_INF
optimized cv::norm with 2 args
optimized cv::norm with NORM_RELATIVE
fixes
fixed possible runtime error
bixed cv::boxFilter
added norm_inf support to minmaxloc kernel
fixed defects found by coverity scan
changed power in cv::pow test to test actual kernel
Update global_motion.cpp

An extremely rare case where, for numeric reasons bestM finds more inliers than ninliersMax. 
This RARE case causes memory corruption and a nasty seg fault.
Merge pull request #2835 from ilya-lavrenov:defects
Merge pull request #2839 from ilya-lavrenov:tapi_fix
Merge pull request #2844 from ilya-lavrenov:tapi_perf_pow