exercises/mpi/pi: Minor refactor