Improve statistic

Add begin() and end() to Statistic.
Add Histogram capabilities.