edited code barely, need to return means of clusters for each algorithm