Forward-Backward Activation Algorithm for Hierarchical Hidden Markov Models