Parallel utility code for CUBEP3M simulations