code to do capture-recapture estimation using decomposable graphical models