Models and Algorithms for Metagenomics Analysis and Plasmid Classification