features extracting for clustering algorithms