A clustering algorithm is implemented.