Doctoral disseration: algorithm for constructing the most probable Bayesian network from data for small domains