An implementation of Karger's Min-Cut Algorithm and Karger-Stein Algorithm.