PMF and CDF
Rewriting .flatten(); fixes #15