Data source: http://rosettacode.org/wiki/Averages/Simple_moving_average