Added model for analysis of marginal linear regression results.

Imporved memory use.