Speed control and reversing mechanism of heavy duty diesel engines