Combined outputHistogram, outputEqualizedHistogram

ofstream constructor expects const * char instead of std::string for
the filename, so we need to use string::c_str() member function to
convert string accordingly.