A profile HMM for pattern matching within a sequence of symbols