added LEAR model calculation. Still need to fix the covariance when
the type changes back and forth from the LEAR to unstructured, etc.