Added stream attribute to BatchHistogram class