A flexible regime switching model with pairs trading application to the S&P 500 high-frequency stock returns. Issue 10 (3rd October 2019)