Mock object and Curry in C++.
Decides  which element of a sequence is in the majority.