Initial extraction of mpileup_kernel, a candidate for multithreading