added histogram example based on opencv

Task reference #222

I am not able to have a consistent results with following code.
Can you have a look on this?

Can you use `std::vector<int>` instead of doing manual memory allocations? This will also take care of initializing the values so you can remove the calls to `memset()`.