Added Prim random walk algorithm