dist matrix,fix knn, online+spherical kmeans