Algorithms For Some Clustering Problems