Trafficmodel: rearranging variable assigments in IDM-function
Traffimodel: added a fix for a typecast bug and the overrunning bug