Added generic HistogramCalculator
Added getter for predicate in HistogramItem class, additional junit test
added