change of gmst.
The new one outputs how many iterations are done.
Remove the function that removes useless edges, as these edges are already removed.

Signed-off-by: ezheng <ezheng@cs.unc.edu>