added n_init check for k_means()
Merge pull request #3858 from banilo/km_init

k-means: add n_init argument check