*Added constructor to create an MPLP instance from the model given by
var_sizes, all_factors and all_lambdas.
* Fixed some const issues.