convert tab indent to 4 spaces indent.
Add lines ranking by occurence count. 
Optimized `uniq` function by comparing on a dict instead of the originally list.