Added function get_ptset_centroids