Update AutoReg.R

AutoReg.R Version1 - basic functions are all finished.