An improved pairs trading strategy based on switching regime volatility