Parallel union-find algorithm based on MPI