Implemented Aldous-Broder algorithm.