Raw version of Karger mincut algorithm