Histogram Operations Rewrited