clustering class - finds centroid and variance as well