MEX file dai now also returns variable and factor beliefs.