add moving average implementation