changes in main and KDE algor preparing to fix get_most_prob_mermbers