motif finding HMM (for study)