kmeans row seeding, optimization: use numpy to replace nan values, it's about 1000 times faster