--- from: http://rosettacode.org/wiki/Averages/Mode note: Probability and statistics