Add computation of density and number density by piece-wise multiplication.
Merge branch 'master' of https://github.com/oneliefleft/gubbins