Methods for handling histograms in Julia