added max ent code (to fit 2nd order aka ising models, and test them)