Detect changepoints in time series data