Controller architecture for the autonomous cars