Markowitz portfolio optimization through pairs trading cointegrated strategy in long-term investment