A Hidden Markov Model Application and C++ Library for Rapid and Flexible Development of HMMs