A Dynamic Programming Approach to Continuous Speech Recognition