ComputeA function

Computes the marginal matrix A and margins vector m of an estimation problem