Function bayesNodes now corrects levels of bayesian node, if some states have been eliminated because they are unreachable.