Use the threadpool to parallelize operations in the particle-splitting code Closes #641 See merge request !1001