returns itr + 1
returns itr + 1
implemented sampling margLocal, moved analytic margLocal to margLocalA
added a test that was worked out by hand apriori.