An HMM duration control algorithm with a low computational cost