Update clustering.cpp