A new coreset framework for clustering