MPI-compatible minimax.c for a single-machine run