select_nb_cluster function

Select the optimal number of clusters