fixed get_ancestors_of active_trail_nodes and is_active_trail methods of Bayesian Model