add moving average implementation
Merge remote-tracking branch 'upstream/master'