Hierarchical Multinomial-Dirichlet model for the estimation of conditional probability tables