Changed strategy of bayesian network construciton from recursive to parallel. Hope this will speed up things.