Function to concatenate HMMs.