added debug flag that prints a message to stderr  when ComputeExactMarginalsBP is being called