time optimal control problems