Modelling Driver Assitance Systems by Optimal Control