Added function to normalize a probability distribution.