Have made algorithms methods non static.
Kargers contraction algrorithm. First part.