read centroids from file