Data Clustering in C++