adding granger causality and linear analysis functions