Clustering Using Binary Splitting Algorithm in C++