added wifi history array
Adding the Time Series Prediction Code