adding multithreading to samtools sort