adding mergersorter and primes