Tested Kargers Min-Cut algorithm.