Randomized Algorithms for the Loop Cutset Problem