Add function to compute centroid of touches