A self-organizing time-optimal controller†