Adding some time series analysis operations