Implimentation of Karger`s algorithm
HW, week 3. Algorithms: Design and Analysis, Part 1