Data clustering using community detection algorithms