MPI working, but only for up to 8 processes