fix implementation and tests for the randomized contraction algorithm to
compute the minimum cut