Added MOG and MOG2.
Resolved a compiling error under Linux.
Resolved a compiling warning under Windows.
Resolved compiling errors under Linux.
Used perf_precomp.hpp instead of precomp.hpp for test.
Merge pull request #4 from Itseez/2.4

OpenCV changes
Fix bilateralFilter function
Optimized mog and mog2, which have much better performance.
add adaptive bilateral filter (cpp and ocl version)
fix warnings
Removed the trailing whitespace
Removed trailing whitespace
Removed whitespace.
Added perf namespace.
Removed performance test.
Prepare Downhill Simplex for pull request

This is an implementation of so-called downhill simplex method
(https://en.wikipedia.org/wiki/Nelder%E2%80%93Mead_method)

Please, let me know if you have any comments, whoever you'd be.
Removed trailing spaces

This caused warnings.
Removed trailing spaces

Continuation of work done in previous commit.
Fixed .rst indentation

This caused warnings.
Minor fixes

In response to the pull request comments by Vadim Pisarevsky. In
particular, the following was done:
    *)cv::reduce use instead of custom code for calculating
per-coordinate sum
    *) naming style of private methods is made consisted with overall --
mixed-case style
    *) irrelevant create()'s were removed -- I did not know that copyTo()
method itself calls create