Improved bisecting kmeans to search for the best number of clusters