likelihood function for type=cov/cor