Added logpdf derivatives to statistical distributions