flexible clustering strategy