how to find mode of a probability density function