Added var.node and Potential.factor
Created DiscretePotential with scoreTable (for JTA)