Generating Bayesian Network Models from Data Using Tsetlin Machines