Changed the way program allocates threads for Bowtie.