begin cointegration implementation