Add ability to analyze by cost distribution to histogram.py