Removed avg method from kmeans.