doMast: consider linear genomes and palindromic motifs while parsing