Add a general PDF for normal distribution

Add a general probability density function for multi-variable normal distribution.
Change interfaces a little.