Improvement for icebergs search

Use a 'better' algorithm, from 

A Randomized Algorithm for Finding Frequent Elements in Streams Using
O(loglogN) Space.

Masatora Ogata, Yukiko Yamauchi, Shuji Kijima, Masafumi Yamashita
01/2011; pp.514-523 In proceeding of: Algorithms and Computation - 22nd
International Symposium, ISAAC 2011, Yokohama, Japan, December 5-8, 2011