Algorithm For Data Clustering