Changed several things to BayesianNetwork so it does the neighbors smart. Changed prints. Added tests