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?

I hope there are no potential logical problem/bug in this kernel. 
Should we go with the approach pointed in the above link?