implemented Exponential Moving Average IIR filter to smooth accelerometer readings