Randomized Contraction Algorithm to calculate the min cut problem of a graph