discrete_entropy function

Shannon entropy for discrete pmf