Simple Moving Average Filter Implementation