A Histogram-Based Technique for Compressing Data