Corrected Berezin's realization of reprsets algorithm