Add function to get all centroids.
Merge pull request #31 from rkp8000/master

Add function to get all centroids.