parallel version of translate_contig