Reduced maximum memory usage for samtools sort