added centroid calculation script
Merge branch 'bibhas' into dev