Optim ds

I'm working on generic numerical optimization module for openCV within the Google Summer of Code 2013 initiative (mentor: Vadim Pisarevsky). This is my second pull request - it contains the realization of Nelder–Mead method or downhill simplex method. It should work properly, but I still need to work on documentation and regression tests.