exponential_moving_average function

Exponential moving average filter (EMA)