Exponential Moving Average

- added ema function to calculate an exponential moving average