A majority voting classifier with probabilistic guarantees