Remove unnecessary conditionals from logmvnpdf function, and make it work with one-dimensional case.