2018 IEEE international conference on data mining: A Variable-Order Regime Switching Model to Identify Significant Patterns in Financial Markets