Add entropy_pmf
Convert to numpy array in cross_entropy_pmf.