Penalty and CovariancePenalty classes to allow more flexibility in specifying penalized models