Design And Implementation Of An Adaptive Cruise Control Algorithm