added n_init check for k_means()