Add Histogram class.

Histogram calculates histogram, cumulative histogram and inverse of
cumulative histogram from an image.