made a method that uses an array to store a bayesian network. Attempting to switch over and use that implementation instead. checkpoint