before adding JTree
inaccurate results with assertions and slow codepaths kept
Realized that JTree's logZ was exact, not exact-Bethe.

Wasted 3 hours auditing the code to look for a bug. On the bright side,
probably going to be a very bug-free commit.
need to actually calculate optimal Bethe