made factor to var messages for max-sum. Started implementing var-vector messages. Both untested.