Speeding up of forecasting, cosmetic change

Deleted redundant global statement and initialized arrays used