Improvements to Autoscaling

Improve Autoscaling to predict the number of instances required in the next time interval