added histogram.cpp