added purity, Kmeans++ bug fixes , minor refactoring.