Text this: Applications of generalized pair hidden Markov models to alignment and gene finding problems.