Added printing of vertical/horizontal histograms.