finish FactorMaxMarginalization.m