Implementation of the connection weight approach for clustering, added examples and unit-tests