Revert "MostFrequentElement"

This reverts commit 894509e8fa1d3a30ce270e01fb2a411b805aade3.