Added score function (derivative of logpdf)