wCutset sampling algorithm