Update histogram.cpp