replace scipy.kmeans with sklearn MiniBatchKmeans for faster speed