BayesianNetworkIndependenceChecker An algorithm to create a bayesian network and check independence of the variable