--- from: http://rosettacode.org/wiki/Bitmap/Histogram note: Image processing