simplified majority
majority(v, w, x) = wx + vx + vw