Latent qlxl

Adds functions to incorporate the Latent model functionality for credit portfolio derivatives pricing and default risk metrics.