Clustering Algorithms for the Centralized and Local Models