Create agglomerative.cc

c++ version
processing sparse vectors