centroids-methods function

Return a matrix of centroids of an object