Implementing and evaluating clustering model of metagenomics contigs from multiple samples