majority vote problem