math.extras: adding docs for majority.