Misra Gries Sketch for determining frequent elements.