added centroid::clear
added centroid::add