Tidy and optimize ewma2 filter.