An implementation of Karger's randomized algorithm to find minimum cuts in connected graphs