added commutative tests for node-probability method
implemented 1st half of variable elimination algorithm (sum-out)
code cleanup / removed comments
changed floats to double floats for better precision