finds maximum with mpi