-added bayesnet to parameter for faster testing. -implemented a function that resolves the set of variables used in a factor of a node, as variables are passed implicitly by the user (so far)