Text this: Optimal minimum time control for a direct current motor using bang-bang control