Finding The Centroid Of A Curve