Implementation of histogram-based method.
Merge branch 'master' of https://github.com/tolkjen/CPOO