nll_frailty_shared function

Negative log-likelihood function: frailty shared