Fixed a bug in measuring distance to centroid
git ignore