demagkernel: cleanup and prepare for multithreading
parallelize demag kernel over components, 3x speed-up