parallel implementation (MPI)