Partitioning 3D space for parallel many-particle simulations