The last parameter int numProcs in MPI_Search funciton is replaced by int myTau for less unnecessary computation.