added movingAverage function
Merge pull request #131 from nikicat/master

added movingAverage function