search frequent element