added graph for kmeans and example