[FLINK-1096] Correction to histogram accumulator

* each key is associated with the number of times it was inserted into the accumulator
* backed histogram with a tree map to present the entries sorted by key