Assignment 3, Karger's algorithm