getOptK function

Optimal temporal aggregation level for AR(1), MA(1), ARMA(1,1)