debugged gibbsinference
merge