Denoising and recognition using hidden Markov models with observation distributions modeled by hidden Markov trees