Contig merging class