An Adaptive Horizon Predictive Control Method for Autonomous Vehicles