Added Histogram::matchPiecewiseHistogram.

Reformat of all the project files. No changes.
Added piecewise matching
Implemented gamma correction.

Implemented histogram matching. Not used nor tested.
Implemented nearest-neighbour interpolated scaling.