Debugging MPI Programs Using Valgrind and GDB