Markov Switching Autoregressive Models: Hidden Chain Reconstruction, Missing Observations Restoration, Forecasting