bug fix in unary coding
added plots for differnces histograms