Rough implementation of adaptive clustering