change idx from map to multimap: count() is slower than size()
sort by estimate; remove sort by count
Fix last commit: break in count-sort