added kmeans tutorial code